package com.wolainfo.simulator.model.tfi;

import static javax.persistence.TemporalType.TIMESTAMP;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Calendar;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;

@Entity
public class NavPrice implements Serializable{

    private static final long serialVersionUID = 6877964126189727408L;

    @Id
    private Integer           priceId;
    private String            fund;
    private String            shareClass;
    @Temporal(TIMESTAMP)
    private Calendar          priceDate;
    private BigDecimal        price;

    public String toString(){
        return price.toString();
    }

    public Integer getPriceId(){
        return priceId;
    }

    public void setPriceId(Integer priceId){
        this.priceId = priceId;
    }

    public String getFund(){
        return fund;
    }

    public void setFund(String fund){
        this.fund = fund;
    }

    public String getShareClass(){
        return shareClass;
    }

    public void setShareClass(String shareClass){
        this.shareClass = shareClass;
    }

    public Calendar getPriceDate(){
        return priceDate;
    }

    public void setPriceDate(Calendar priceDate){
        this.priceDate = priceDate;
    }

    public BigDecimal getPrice(){
        return price;
    }

    public void setPrice(BigDecimal price){
        this.price = price;
    }
}
